
var validationApp = angular.module('validationApp', ['ngMessages']);

// create angular controller
validationApp.controller('mainController', function($scope) {

    $scope.pw1=445
    // function to submit the form after all validation has occurred            
    $scope.submitForm = function(isValid) {

        // check to make sure the form is completely valid
        if (isValid) {
            alert('our form is amazing');
        }

    };

});


